package com.fymxy.question_bank_management.service.serviceImpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fymxy.question_bank_management.mapper.Request2teacherMapper;
import com.fymxy.question_bank_management.pojo.Request2teacher;
import com.fymxy.question_bank_management.service.Request2teacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Request2teacherServiceImpl implements Request2teacherService {

    @Autowired
    private Request2teacherMapper request2teacherMapper;

    @Override
    public int insert(Request2teacher request2teacher) {
        return request2teacherMapper.insert(request2teacher);
    }

    @Override
    public IPage<Request2teacher> findAll(Page<Request2teacher> page) {
        return request2teacherMapper.findAll(page);
    }

    @Override
    public int deleteByPrimaryKey(Integer requestSignupNo) {
        return request2teacherMapper.deleteByPrimaryKey(requestSignupNo);
    }
}
